package com.ktgj.flight.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.flight.mapper.FlightDeliverCustomerMapper;
import com.ktgj.flight.domain.FlightDeliverCustomer;
import com.ktgj.flight.service.IFlightDeliverCustomerService;

/**
 * 会员邮寄列Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-26
 */
@Service
public class FlightDeliverCustomerServiceImpl implements IFlightDeliverCustomerService 
{
    @Autowired
    private FlightDeliverCustomerMapper flightDeliverCustomerMapper;

    /**
     * 查询会员邮寄列
     * 
     * @param deliverid 会员邮寄列ID
     * @return 会员邮寄列
     */
    @Override
    public FlightDeliverCustomer selectFlightDeliverCustomerById(Long deliverid)
    {
        return flightDeliverCustomerMapper.selectFlightDeliverCustomerById(deliverid);
    }

    /**
     * 查询会员邮寄列列表
     * 
     * @param flightDeliverCustomer 会员邮寄列
     * @return 会员邮寄列
     */
    @Override
    public List<FlightDeliverCustomer> selectFlightDeliverCustomerList(FlightDeliverCustomer flightDeliverCustomer)
    {
        return flightDeliverCustomerMapper.selectFlightDeliverCustomerList(flightDeliverCustomer);
    }

    /**
     * 新增会员邮寄列
     * 
     * @param flightDeliverCustomer 会员邮寄列
     * @return 结果
     */
    @Override
    public int insertFlightDeliverCustomer(FlightDeliverCustomer flightDeliverCustomer)
    {
        return flightDeliverCustomerMapper.insertFlightDeliverCustomer(flightDeliverCustomer);
    }

    /**
     * 修改会员邮寄列
     * 
     * @param flightDeliverCustomer 会员邮寄列
     * @return 结果
     */
    @Override
    public int updateFlightDeliverCustomer(FlightDeliverCustomer flightDeliverCustomer)
    {
        return flightDeliverCustomerMapper.updateFlightDeliverCustomer(flightDeliverCustomer);
    }

    /**
     * 批量删除会员邮寄列
     * 
     * @param deliverids 需要删除的会员邮寄列ID
     * @return 结果
     */
    @Override
    public int deleteFlightDeliverCustomerByIds(Long[] deliverids)
    {
        return flightDeliverCustomerMapper.deleteFlightDeliverCustomerByIds(deliverids);
    }

    /**
     * 删除会员邮寄列信息
     * 
     * @param deliverid 会员邮寄列ID
     * @return 结果
     */
    @Override
    public int deleteFlightDeliverCustomerById(Long deliverid)
    {
        return flightDeliverCustomerMapper.deleteFlightDeliverCustomerById(deliverid);
    }
}
